package com.wyd.decorate.demo01.Condiment;

import com.wyd.decorate.demo01.Beverage.Beverage;

/**
 * @author Yudi Wang
 * @date 2022/1/6 15:38
 */
public class Mocha implements Condiment{
    private Beverage beverage;

    private double PRICE = 1.27;

    public Mocha(Beverage beverage) {
        this.beverage = beverage;
    }

    public String getDescription() {
        return beverage.getDescription() + ", Mocha";
    }

    public double cost() {
        return beverage.cost() + PRICE;
    }
}
